package com.sms.web.system.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.sms.common.BaseEntity;

/**
 * @desc 角色实体类.
 * @author WuJiangWu
 * @time 2018年5月4日上午10:56:44
 */
@Entity
@Table(name = "sys_role")
public class SysRole extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	/**角色id*/
    @Id
    @GeneratedValue(generator = "UIDGenerator")
    @GenericGenerator(name = "UIDGenerator", strategy = "com.sms.common.persistence.UIDGenerator")
    @Column(length = 40)
	private String id;
	/**角色编码*/
    @Column(length = 40)
	private String roleCode;
	/**角色名称*/
    @Column(length = 40)
	private String roleName;
	/**备注*/
    @Column(length = 200)
	private String description;
	
    public SysRole(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public String getRoleCode() {
		return roleCode;
	}
	public String getRoleName() {
		return roleName;
	}
	public String getDescription() {
		return description;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
}
